<h1 id="Game-map-visual"><a href="#Game-map-visual" class="headerlink" title="Game.map.visual"></a>Game.map.visual</h1><p>地图可视化（Map visual）提供了一种途径来在游戏地图上显示各种可视化的调试信息。您可以使用 <code>Game.map.visual</code> 对象来绘制一些仅对您可见的简单图形。</p>
<p>地图可视化不会被存储在游戏数据库中，它们唯一的作用就是在您的浏览器上显示一些信息。所有的绘制效果只会被保留一个 tick，并且如果下个 tick 没有更新的话它们就会消失。所有的 <code>Game.map.visual</code> 调用都不会产生 CPU 消耗（只会产生一些代码执行的自然成本，并且大多与简单的 <code>JSON.serialize</code> 调用有关）。然而，这里有一条使用限制：您最多只能为每个房间发布 1000 KB 的序列化数据。</p>
<p>所有绘制坐标均等同于全局游戏坐标 (<a href="#RoomPosition"><code>RoomPosition</code></a>)。</p>
<h2 id="Game.map-visual.line" class="api-property api-property--method  "><span class="api-property__name">line</span><span class="api-property__args">(pos1, pos2, [style])</span>
        <div class="api-property__cpu api-property__cpu--0" title="该方法的CPU开销很小。"></div>
        </h2>
<pre class="highlight javascript tab-javascript "><code>Game<span class="token punctuation">.</span>map<span class="token punctuation">.</span>visual<span class="token punctuation">.</span><span class="token function">line</span><span class="token punctuation">(</span>creep<span class="token punctuation">.</span>pos<span class="token punctuation">,</span> target<span class="token punctuation">.</span>pos<span class="token punctuation">,</span>
    <span class="token punctuation">{</span>color<span class="token punctuation">:</span> <span class="token string">'#ff0000'</span><span class="token punctuation">,</span> lineStyle<span class="token punctuation">:</span> <span class="token string">'dashed'</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre><p>绘制一条线。</p>
<table><thead><tr><th>parameter</th><th>type</th><th>description</th></tr></thead><tbody>
<tr><td><code>pos1</code></td><td><a href="#RoomPosition">RoomPosition</a></td><td><p>起始点位置对象。</p>
</td>
</tr><tr><td><code>pos2</code></td><td><a href="#RoomPosition">RoomPosition</a></td><td><p>结束点位置对象。</p>
</td>
</tr><tr><td><code>style (可选)</code></td><td>object</td><td><p>包含下列属性的对象：</p>
<ul>
    <li>
        <div class="api-arg-title">width</div>
        <div class="api-arg-type">number</div>
        <div class="api-arg-desc">线条的宽度，默认值为 0.1。</div>
    </li>
    <li>
        <div class="api-arg-title">color</div>
        <div class="api-arg-type">string</div>
        <div class="api-arg-desc">线条颜色，使用以下格式：<code>#ffffff</code>（十六进制颜色），默认为 <code>#ffffff<code>。</code></code></div>
    </li>
    <li>
        <div class="api-arg-title">opacity</div>
        <div class="api-arg-type">number</div>
        <div class="api-arg-desc">透明度，默认值为 0.5。</div>
    </li>
    <li>
        <div class="api-arg-title">lineStyle</div>
        <div class="api-arg-type">string</div>
        <div class="api-arg-desc"><code>undefined</code> (实线)，<code>dashed</code> (虚线) 或者 <code>dotted</code> (点线) 之一。默认值为 undefined。</div>
    </li>
</ul></td>
</tr></tbody></table>

<h3 id="返回值"><a href="#返回值" class="headerlink" title="返回值"></a>返回值</h3><p><code>MapVisual</code> 对象本身，以便进行链式调用。</p>
<h2 id="Game.map-visual.circle" class="api-property api-property--method  "><span class="api-property__name">circle</span><span class="api-property__args">(pos, [style])</span>
        <div class="api-property__cpu api-property__cpu--0" title="该方法的CPU开销很小。"></div>
        </h2>
<pre class="highlight javascript tab-javascript "><code>Game<span class="token punctuation">.</span>map<span class="token punctuation">.</span>visual<span class="token punctuation">.</span><span class="token function">circle</span><span class="token punctuation">(</span><span class="token keyword">new</span> <span class="token class-name">RoomPosition</span><span class="token punctuation">(</span><span class="token number">25</span><span class="token punctuation">,</span><span class="token number">25</span><span class="token punctuation">,</span><span class="token string">'E2S7'</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre><pre class="highlight javascript tab-javascript "><code>Game<span class="token punctuation">.</span>map<span class="token punctuation">.</span>visual<span class="token punctuation">.</span><span class="token function">circle</span><span class="token punctuation">(</span>nuker<span class="token punctuation">.</span>pos<span class="token punctuation">,</span> <span class="token punctuation">{</span>fill<span class="token punctuation">:</span> <span class="token string">'transparent'</span><span class="token punctuation">,</span> radius<span class="token punctuation">:</span> <span class="token constant">NUKE_RANGE</span><span class="token operator">*</span><span class="token number">50</span><span class="token punctuation">,</span> stroke<span class="token punctuation">:</span> <span class="token string">'#ff0000'</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre><p>绘制一个圆。</p>
<table><thead><tr><th>parameter</th><th>type</th><th>description</th></tr></thead><tbody>
<tr><td><code>pos</code></td><td><a href="#RoomPosition">RoomPosition</a></td><td><p>中心点位置对象。</p>
</td>
</tr><tr><td><code>style (可选)</code></td><td>object</td><td><p>包含下列属性的对象：</p>
<ul>
    <li>
        <div class="api-arg-title">radius</div>
        <div class="api-arg-type">number</div>
        <div class="api-arg-desc">圆的半径，默认值为 10。</div>
    </li>
    <li>
        <div class="api-arg-title">fill</div>
        <div class="api-arg-type">string</div>
        <div class="api-arg-desc">线条颜色，使用以下格式：<code>#ffffff</code>（十六进制颜色），默认为 <code>#ffffff<code>。</code></code></div>
    </li>
    <li>
        <div class="api-arg-title">opacity</div>
        <div class="api-arg-type">number</div>
        <div class="api-arg-desc">透明度，默认值为 0.5。</div>
    </li>
    <li>
        <div class="api-arg-title">stroke</div>
        <div class="api-arg-type">string</div>
        <div class="api-arg-desc">轮廓颜色，使用以下格式：<code>#ffffff</code>（十六进制颜色），默认为 undefined（无轮廓）。</div>
    </li>
    <li>
        <div class="api-arg-title">strokeWidth</div>
        <div class="api-arg-type">number</div>
        <div class="api-arg-desc">轮廓宽度，默认值为 0.5。</div>
    </li>
    <li>
        <div class="api-arg-title">lineStyle</div>
        <div class="api-arg-type">string</div>
        <div class="api-arg-desc"><code>undefined</code> (实线)，<code>dashed</code> (虚线) 或者 <code>dotted</code> (点线) 之一。默认值为 undefined。</div>
    </li>
</ul></td>
</tr></tbody></table>

<h3 id="返回值-1"><a href="#返回值-1" class="headerlink" title="返回值"></a>返回值</h3><p><code>MapVisual</code> 对象本身，以便进行链式调用。</p>
<h2 id="Game.map-visual.rect" class="api-property api-property--method  "><span class="api-property__name">rect</span><span class="api-property__args">(topLeftPos, width, height, [style])</span>
        <div class="api-property__cpu api-property__cpu--0" title="该方法的CPU开销很小。"></div>
        </h2>
<pre class="highlight javascript tab-javascript "><code><span class="token comment">// tower 的最佳效果区域</span>
Game<span class="token punctuation">.</span>map<span class="token punctuation">.</span>visual<span class="token punctuation">.</span><span class="token function">rect</span><span class="token punctuation">(</span><span class="token keyword">new</span> <span class="token class-name">RoomPosition</span><span class="token punctuation">(</span>tower<span class="token punctuation">.</span>pos<span class="token punctuation">.</span>x <span class="token operator">-</span> <span class="token number">5</span><span class="token punctuation">,</span> tower<span class="token punctuation">.</span>pos<span class="token punctuation">.</span>y <span class="token operator">-</span> <span class="token number">5</span><span class="token punctuation">,</span> tower<span class="token punctuation">.</span>pos<span class="token punctuation">.</span>roomName<span class="token punctuation">)</span><span class="token punctuation">,</span> 
    <span class="token number">11</span><span class="token punctuation">,</span> <span class="token number">11</span><span class="token punctuation">,</span>
    <span class="token punctuation">{</span>fill<span class="token punctuation">:</span> <span class="token string">'transparent'</span><span class="token punctuation">,</span> stroke<span class="token punctuation">:</span> <span class="token string">'#ff0000'</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre><p>绘制一个矩形。</p>
<table><thead><tr><th>parameter</th><th>type</th><th>description</th></tr></thead><tbody>
<tr><td><code>topLeftPos</code></td><td><a href="#RoomPosition">RoomPosition</a></td><td><p>左上角的位置对象。</p>
</td>
</tr><tr><td><code>width</code></td><td>number</td><td><p>矩形的宽。</p>
</td>
</tr><tr><td><code>height</code></td><td>number</td><td><p>矩形的高。</p>
</td>
</tr><tr><td><code>style (可选)</code></td><td>object</td><td><p>包含下列属性的对象：</p>
<ul>
    <li>
        <div class="api-arg-title">fill</div>
        <div class="api-arg-type">string</div>
        <div class="api-arg-desc">线条颜色，使用以下格式：<code>#ffffff</code>（十六进制颜色），默认为 <code>#ffffff<code>。</code></code></div>
    </li>
    <li>
        <div class="api-arg-title">opacity</div>
        <div class="api-arg-type">number</div>
        <div class="api-arg-desc">透明度，默认值为 0.5。</div>
    </li>
    <li>
        <div class="api-arg-title">stroke</div>
        <div class="api-arg-type">string</div>
        <div class="api-arg-desc">轮廓颜色，使用以下格式：<code>#ffffff</code>（十六进制颜色），默认为 undefined（无轮廓）。</div>
    </li>
    <li>
        <div class="api-arg-title">strokeWidth</div>
        <div class="api-arg-type">number</div>
        <div class="api-arg-desc">轮廓宽度，默认值为 0.5。</div>
    </li>
    <li>
        <div class="api-arg-title">lineStyle</div>
        <div class="api-arg-type">string</div>
        <div class="api-arg-desc"><code>undefined</code> (实线)，<code>dashed</code> (虚线) 或者 <code>dotted</code> (点线) 之一。默认值为 undefined。</div>
    </li>
</ul></td>
</tr></tbody></table>

<h3 id="返回值-2"><a href="#返回值-2" class="headerlink" title="返回值"></a>返回值</h3><p><code>MapVisual</code> 对象本身，以便进行链式调用。</p>
<h2 id="Game.map-visual.poly" class="api-property api-property--method  "><span class="api-property__name">poly</span><span class="api-property__args">(points, [style])</span>
        <div class="api-property__cpu api-property__cpu--0" title="该方法的CPU开销很小。"></div>
        </h2>
<pre class="highlight javascript tab-javascript "><code><span class="token keyword">const</span> points <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
points<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>creep1<span class="token punctuation">.</span>pos<span class="token punctuation">)</span><span class="token punctuation">;</span>
points<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>Game<span class="token punctuation">.</span>rooms<span class="token punctuation">.</span><span class="token constant">E2S7</span><span class="token punctuation">.</span>storage<span class="token punctuation">.</span>pos<span class="token punctuation">)</span><span class="token punctuation">;</span>
points<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token keyword">new</span> <span class="token class-name">RoomPosition</span><span class="token punctuation">(</span><span class="token number">20</span><span class="token punctuation">,</span><span class="token number">21</span><span class="token punctuation">,</span><span class="token string">'W1N1'</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
Game<span class="token punctuation">.</span>map<span class="token punctuation">.</span>visual<span class="token punctuation">.</span><span class="token function">poly</span><span class="token punctuation">(</span>points<span class="token punctuation">,</span> <span class="token punctuation">{</span>fill<span class="token punctuation">:</span> <span class="token string">'aqua'</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> </code></pre><pre class="highlight javascript tab-javascript "><code><span class="token comment">// 将路径可视化</span>
<span class="token keyword">const</span> path <span class="token operator">=</span> PathFinder<span class="token punctuation">.</span><span class="token function">search</span><span class="token punctuation">(</span>creep<span class="token punctuation">.</span>pos<span class="token punctuation">,</span> creep<span class="token punctuation">.</span>room<span class="token punctuation">.</span>storage<span class="token punctuation">.</span>pos<span class="token punctuation">)</span><span class="token punctuation">.</span>path<span class="token punctuation">;</span>
Game<span class="token punctuation">.</span>map<span class="token punctuation">.</span>visual<span class="token punctuation">.</span><span class="token function">poly</span><span class="token punctuation">(</span>path<span class="token punctuation">,</span> <span class="token punctuation">{</span>stroke<span class="token punctuation">:</span> <span class="token string">'#ffffff'</span><span class="token punctuation">,</span> strokeWidth<span class="token punctuation">:</span> <span class="token number">.8</span><span class="token punctuation">,</span> opacity<span class="token punctuation">:</span> <span class="token number">.2</span><span class="token punctuation">,</span> lineStyle<span class="token punctuation">:</span> <span class="token string">'dashed'</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre><p>绘制一段折线.</p>
<table><thead><tr><th>parameter</th><th>type</th><th>description</th></tr></thead><tbody>
<tr><td><code>points</code></td><td>array</td><td><p>包含了所有拐点的数组。每个数组元素都应是一个 <a href="#RoomPosition"><code>RoomPosition</code></a> 对象。</p>
</td>
</tr><tr><td><code>style (可选)</code></td><td>object</td><td><p>包含下列属性的对象：
                    <ul>
                        <li>
                            <div class="api-arg-title">fill</div>
                            <div class="api-arg-type">string</div>
                            <div class="api-arg-desc">填充颜色，使用以下格式：<code>#ffffff</code>（十六进制颜色），默认为 <code>undefined</code>（无填充）。</div>
                        </li>
                        <li>
                            <div class="api-arg-title">opacity</div>
                            <div class="api-arg-type">number</div>
                            <div class="api-arg-desc">透明度，默认值为 0.5。</div>
                        </li>
                        <li>
                            <div class="api-arg-title">stroke</div>
                            <div class="api-arg-type">string</div>
                            <div class="api-arg-desc">轮廓颜色，使用以下格式：<code>#ffffff</code>（十六进制颜色），默认为 <code>#ffffff</code>。</div>
                        </li>
                        <li>
                            <div class="api-arg-title">strokeWidth</div>
                            <div class="api-arg-type">number</div>
                            <div class="api-arg-desc">轮廓宽度，默认值为 0.5。</div>
                        </li>
                        <li>
                            <div class="api-arg-title">lineStyle</div>
                            <div class="api-arg-type">string</div>
                            <div class="api-arg-desc"><code>undefined</code> (实线)，<code>dashed</code> (虚线) 或者 <code>dotted</code> (点线) 之一。默认值为 undefined。</div>
                        </li>
                    </ul></p>
</td>
</tr></tbody></table>

<h3 id="返回值-3"><a href="#返回值-3" class="headerlink" title="返回值"></a>返回值</h3><p><code>MapVisual</code> 对象本身，以便进行链式调用。</p>
<h2 id="Game.map-visual.text" class="api-property api-property--method  "><span class="api-property__name">text</span><span class="api-property__args">(text, pos, [style])</span>
        <div class="api-property__cpu api-property__cpu--0" title="该方法的CPU开销很小。"></div>
        </h2>
<pre class="highlight javascript tab-javascript "><code>Game<span class="token punctuation">.</span>map<span class="token punctuation">.</span>visual<span class="token punctuation">.</span><span class="token function">text</span><span class="token punctuation">(</span><span class="token string">"Target💥"</span><span class="token punctuation">,</span> <span class="token keyword">new</span> <span class="token class-name">RoomPosition</span><span class="token punctuation">(</span><span class="token number">11</span><span class="token punctuation">,</span><span class="token number">14</span><span class="token punctuation">,</span><span class="token string">'E2S7'</span><span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token punctuation">{</span>color<span class="token punctuation">:</span> <span class="token string">'#FF0000'</span><span class="token punctuation">,</span> fontSize<span class="token punctuation">:</span> <span class="token number">10</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span> </code></pre><p>绘制一个文本标签。你可以使用任何有效的 Unicode 字符，包括 <a href="http://unicode.org/emoji/charts/emoji-style.txt" target="_blank">emoji</a>。</p>
<table><thead><tr><th>parameter</th><th>type</th><th>description</th></tr></thead><tbody>
<tr><td><code>text</code></td><td>string</td><td><p>文本信息</p>
</td>
</tr><tr><td><code>pos</code></td><td><a href="#RoomPosition">RoomPosition</a></td><td><p>文本基线（baseline）起始点的位置对象。</p>
</td>
</tr><tr><td><code>style (可选)</code></td><td>object</td><td><p>包含下列属性的对象：
                    <ul>
                        <li>
                            <div class="api-arg-title">color</div>
                            <div class="api-arg-type">string</div>
                            <div class="api-arg-desc">文本颜色，使用以下格式：<code>#ffffff</code>（十六进制颜色），默认为 <code>#ffffff</code>。</div>
                        </li>
                        <li>
                            <div class="api-arg-title">fontFamily</div>
                            <div class="api-arg-type">string</div>
                            <div class="api-arg-desc">文本字体，默认为 <code>sans-serif</code></div>
                        </li>
                        <li>
                            <div class="api-arg-title">fontSize</div>
                            <div class="api-arg-type">number</div>
                            <div class="api-arg-desc">字体大小，基于游戏坐标，默认为 10</div>
                        </li>
                        <li>
                            <div class="api-arg-title">fontStyle</div>
                            <div class="api-arg-type">string</div>
                            <div class="api-arg-desc">字体风格（&#39;normal&#39;, &#39;italic&#39; 或者 &#39;oblique&#39;）</div>
                        </li>
                        <li>
                            <div class="api-arg-title">fontVariant</div>
                            <div class="api-arg-type">string</div>
                            <div class="api-arg-desc">字体变种（&#39;normal&#39; 或者 &#39;small-caps&#39;）</div>
                        </li>
                        <li>
                            <div class="api-arg-title">stroke</div>
                            <div class="api-arg-type">string</div>
                            <div class="api-arg-desc">轮廓颜色，使用以下格式：<code>#ffffff</code>（十六进制颜色），默认为 undefined（无轮廓）。</div>
                        </li>
                        <li>
                            <div class="api-arg-title">strokeWidth</div>
                            <div class="api-arg-type">number</div>
                            <div class="api-arg-desc">轮廓宽带，默认为 0.15。</div>
                        </li>
                        <li>
                            <div class="api-arg-title">backgroundColor</div>
                            <div class="api-arg-type">string</div>
                            <div class="api-arg-desc">背景颜色，使用以下格式：<code>#ffffff</code>（十六进制颜色），默认为 undefined（无背景色）。当启用背景色时，文本的垂直对齐模式将被设置为居中（默认为 baseline）。</div>
                        </li>
                        <li>
                            <div class="api-arg-title">backgroundPadding</div>
                            <div class="api-arg-type">number</div>
                            <div class="api-arg-desc">背景矩形的内边距（padding），默认为 2。</div>
                        </li>
                        <li>
                            <div class="api-arg-title">align</div>
                            <div class="api-arg-type">string</div>
                            <div class="api-arg-desc">文本对齐，<code>center</code>、<code>left</code>、<code>right</code> 之一。默认为 <code>center</code>。</div>
                        </li>
                        <li>
                            <div class="api-arg-title">opacity</div>
                            <div class="api-arg-type">number</div>
                            <div class="api-arg-desc">透明度，默认值为 0.5。</div>
                        </li>
                    </ul></p>
</td>
</tr></tbody></table>

<h3 id="返回值-4"><a href="#返回值-4" class="headerlink" title="返回值"></a>返回值</h3><p><code>MapVisual</code> 对象本身，以便进行链式调用。</p>
<h2 id="Game.map-visual.clear" class="api-property api-property--method  "><span class="api-property__name">clear</span><span class="api-property__args">()</span>
        <div class="api-property__cpu api-property__cpu--0" title="该方法的CPU开销很小。"></div>
        </h2>
<pre class="highlight javascript tab-javascript "><code>Game<span class="token punctuation">.</span>map<span class="token punctuation">.</span>visual<span class="token punctuation">.</span><span class="token function">clear</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre><p>移除该房间的所有可视化效果。</p>
<h3 id="返回值-5"><a href="#返回值-5" class="headerlink" title="返回值"></a>返回值</h3><p><code>MapVisual</code> 对象本身，以便进行链式调用。</p>
<h2 id="Game.map-visual.getSize" class="api-property api-property--method  "><span class="api-property__name">getSize</span><span class="api-property__args">()</span>
        <div class="api-property__cpu api-property__cpu--0" title="该方法的CPU开销很小。"></div>
        </h2>
<pre class="highlight javascript tab-javascript "><code><span class="token keyword">if</span><span class="token punctuation">(</span>Game<span class="token punctuation">.</span>map<span class="token punctuation">.</span>visual<span class="token punctuation">.</span><span class="token function">getSize</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">>=</span> <span class="token number">1024000</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token comment">// 本 tick 无法添加更多的可视化效果</span>
<span class="token punctuation">}</span></code></pre><p>获取本 tick 所有可视化效果的存储大小。最多不能超过 1024,000（1000 KB）。</p>
<h3 id="返回值-6"><a href="#返回值-6" class="headerlink" title="返回值"></a>返回值</h3><p>可视化效果的大小（单位：字节）。</p>
<h2 id="Game.map-visual.export" class="api-property api-property--method  "><span class="api-property__name">export</span><span class="api-property__args">()</span>
        <div class="api-property__cpu api-property__cpu--0" title="该方法的CPU开销很小。"></div>
        </h2>
<pre class="highlight javascript tab-javascript "><code>Memory<span class="token punctuation">.</span>MapVisualData <span class="token operator">=</span> Game<span class="token punctuation">.</span>map<span class="token punctuation">.</span>visual<span class="token punctuation">.</span><span class="token function">export</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre><p>返回当前 tick 中添加到地图中的所有可视化效果的紧凑格式。</p>
<h3 id="返回值-7"><a href="#返回值-7" class="headerlink" title="返回值"></a>返回值</h3><p>代表了可视化数据的字符串。除了将其存储以备后续使用外，您不应该对其进行其他操作。</p>
<h2 id="Game.map-visual.import" class="api-property api-property--method  "><span class="api-property__name">import</span><span class="api-property__args">(val)</span>
        <div class="api-property__cpu api-property__cpu--0" title="该方法的CPU开销很小。"></div>
        </h2>
<pre class="highlight javascript tab-javascript "><code>Game<span class="token punctuation">.</span>map<span class="token punctuation">.</span>visual<span class="token punctuation">.</span><span class="token function">import</span><span class="token punctuation">(</span>Memory<span class="token punctuation">.</span>MapVisualData<span class="token punctuation">)</span><span class="token punctuation">;</span></code></pre><p>将先前导出（使用<a href="#Game.map-visual.export">Game.map.visual.export</a>）的地图可视化效果添加到当前 tick。 </p>
<table><thead><tr><th>parameter</th><th>type</th><th>description</th></tr></thead><tbody>
<tr><td><code>val</code></td><td>string</td><td><p>从 Game.map.visual.export 返回的字符串。</p>
</td>
</tr></tbody></table>

<h3 id="返回值-8"><a href="#返回值-8" class="headerlink" title="返回值"></a>返回值</h3><p><code>MapVisual</code> 对象本身，以便进行链式调用。</p>
